
//线性渐变色
@mixin linearGrad($direction,$start,$end){
    @if $direction==top{
        background: -webkit-linear-gradient($start,$end);
        background: -o-linear-gradient($start, $end);
        background: -moz-linear-gradient($start, $end);
        background: linear-gradient($start,$end);
    }
    @else if $direction==left{
        background: -webkit-linear-gradient(left,$start,$end);
        background: -o-linear-gradient(right,$start, $end);
        background: -moz-linear-gradient(right,$start, $end);
        background: linear-gradient(to right,$start,$end);
    }
    @else if $direction==left top{
        background: -webkit-linear-gradient(left top,$start,$end);
        background: -o-linear-gradient(bottom right,$start, $end);
        background: -moz-linear-gradient(bottom right,$start, $end);
        background: linear-gradient(to bottom right,$start,$end);
    }
    
}






